package com.trkj.service;

import com.trkj.dao.CarParkDao;
import com.trkj.entity.CarParkEntity;
import com.trkj.entity.ParkingEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Slf4j
public class CarParkImpl implements CarParkService{
    @Autowired
    private CarParkDao carParkDao;
    //车场车位的查询
    public List<CarParkEntity> CarParkList(CarParkEntity carParkEntity){
        return carParkDao.CarParkList(carParkEntity);
    }
    public List<CarParkEntity> CarParkXinxi(int id){
        return carParkDao.CarParkXinxi(id);
    }


    //查询所有停车位数量
    @Override
    public List<CarParkEntity> ParkList(){
        return carParkDao.ParkList();
    }
}
